<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 引入浏览器默认样式 -->
    <link rel="stylesheet" href="./../css/reset.css">
    <!-- 引入MUI -->
    <link rel="stylesheet" href="./../lib/mui/css/mui.css">
    <!-- 引入字体图标库 -->
    <link rel="stylesheet" href="./../lib/fontAwesome/css/font-awesome.css">
    <!-- 引入公共样式 -->
    <link rel="stylesheet" href="./../css/common.css">
    <!-- 引入页面样式 -->
    <link rel="stylesheet" href="./../css/index.css">
    <title>集单-首页</title>
</head>

<body>
    <!-- 头部 -->
    <header class="mui-header mui-bar-nav">
        <div class="search">
            <input type="text" name="search" id="search" placeholder="搜索商品">
            <!-- <span class="fa fa-search">Search</spa0n> -->
            <input type="button" value="搜索" class="btn">
            <i class="fa fa-search"></i>
        </div>
    </header>
    <!-- 底部 -->
    <footer class="mui-footer mui-bar mui-bar-tab">
        <a class="change-color mui-item active" href="./index.html">
            <i class="fa fa-home"></i>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="change-color mui-item" href="./cart.html">
            <i class="fa fa-shopping-cart"></i>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="change-color mui-item " href="./user/person.html">
            <i class="fa fa-user"></i>
            <span class="mui-tab-label">我的</span>
        </a>
    </footer>
    <!-- 主体 -->
    <main class="mui-main mui-scroll-wrapper">
        <div class="mui-scroll">
            <ul class="mui-table-view sort">
                <li class="mui-table-view-cell ">
                    <a href="details.html">
                        <div class="sort-info">
                            <p>商品名称</p>
                        </div>
                        <div class="sort-price">
                            <span><i>￥15.00 </i>/ 型号</span>
                            <span>库存：</span>
                        </div>
                    </a>
                </li>
            </ul>
        </div>
    </main>
    <!-- 商品列表模板渲染 -->
    <script type="text/template" id="list-show">
        <% for (var i = 0; i < result.list.length; i ++) {%>
            <li class="mui-table-view-cell ">
                    <a href="details.html?id=<%=  result.list[i].id%>" data-id="<%=  result.list[i].id%>">
                        <div class="sort-info">
                            <p> <%= result.list[i].cotName%></p>
                        </div>
                        <div class="sort-price">
                            <span><i>￥<%=  result.list[i].cotPrice%> </i>/ <%= result.list[i].cotSize%></span>
                            <span>库存：<%= result.list[i].cotInventory%></span>
                        </div>
                    </a>
                </li>
        <% }%>
    </script>
    <!-- 引入zepto库 -->
    <script src="./../lib/zepto/zepto.min.js"></script>
    <!-- 引入MUI库  -js文件 -->
    <script src="./../lib/mui/js/mui.min.js"></script>
    <!-- 引入模板引擎 -->
    <script src="./../lib/artTemplate/template-native.js"></script>
    <script src="./../js/comment.js"></script>
    <!-- 引入本页面的js -->
    <script src="./../js/index.js"></script>

</body>

</html>